/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司 All rights reserved.
 */
package cn.net.ecode.modules.cms.entity;
import java.util.List;


import com.google.common.collect.Lists;

import cn.net.ecode.common.persistence.DataEntity;
import cn.net.ecode.modules.sys.entity.Role;

/**
 * 栏目授权Entity
 * @author jiangwenchao
 * @version 2014-12-25
 */
public class CategoryRole extends DataEntity<CategoryRole> {
	
	private static final long serialVersionUID = 1L;
	
	private Category category;	// 栏目
	private Role role;			// 角色
	private Site site;			// 站点
	
	List<Site> siteList=Lists.newArrayList();
	List<String> categoryIds=Lists.newArrayList();
	
	public CategoryRole() {
		super();
	}

	public CategoryRole(Category category, Role role){
		super();
		this.category = category;
		this.role = role;
	}
	
	public CategoryRole(Role role){
		super();
		this.role = role;
	}
	
	public CategoryRole(Category category){
		super();
		this.category = category;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public List<Site> getSiteList() {
		return siteList;
	}

	public void setSiteList(List<Site> siteList) {
		this.siteList = siteList;
	}

	public Site getSite() {
		return site;
	}

	public void setSite(Site site) {
		this.site = site;
	}

	public List<String> getCategoryIds() {
		return categoryIds;
	}

	public void setCategoryIds(List<String> categoryIds) {
		this.categoryIds = categoryIds;
	}
	
}